const MysqlBaseRpcApi= require("ming_node/plugins/BaseRpcApi/MysqlBaseRpcApi");


class ZxFileManagerPlugin extends  MysqlBaseRpcApi {

    constructor(props) {
        super(props);
        this.rootFilePath= props.rootFilePath;
    }
    install(app,args){

        super.install(app,args);

        app.get(`${this.prefix}/preview`,async (req,res)=>{
            res.sendFile("file:C:/Users/LangJie/Downloads/D00001C.png")
        });
    }
}

module.exports = ZxFileManagerPlugin;